package com.macro.mall.mapper;

import com.macro.mall.model.BasicPlatform;
import com.macro.mall.model.BasicPlatformExample;
import com.macro.mall.pojo.DataManPlatformdVo;
import com.macro.mall.query.PinionQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BasicPlatformMapper {
    long countByExample(BasicPlatformExample example);

    int deleteByExample(BasicPlatformExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BasicPlatform record);

    int insertSelective(BasicPlatform record);

    List<BasicPlatform> selectByExample(BasicPlatformExample example);

    BasicPlatform selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BasicPlatform record, @Param("example") BasicPlatformExample example);

    int updateByExample(@Param("record") BasicPlatform record, @Param("example") BasicPlatformExample example);

    int updateByPrimaryKeySelective(BasicPlatform record);

    int updateByPrimaryKey(BasicPlatform record);

    List<BasicPlatform> list(String webName);

    List<BasicPlatform> selectByUrl(String name);


    /***
     * 查询数据管理-平台数据
     * @param platformName
     * @return
     */
    List<DataManPlatformdVo> selectByName(PinionQuery platformName);
}